<?php


namespace Bxy\Jwt;


use Hyperf\HttpServer\Contract\ResponseInterface;
use Psr\Http\Message\ServerRequestInterface;

interface AuthInterface
{
    public function authenticate(ServerRequestInterface $request,$isPublic,$isWhitelist,$isCheck);

    public function challenge(ResponseInterface $response):ResponseInterface;
}